package me.luger.project.fof.entity;


import me.luger.core.dao.nutz.entity.BaseEntity;
import org.nutz.dao.entity.annotation.*;
import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

@Table("fof_result")
public class FofResult extends BaseEntity implements Serializable{
private static final long serialVersionUID=1L;


    /**
     * fof id
     */
    @Column("fof_id")
    @Comment("fof id")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer fofId;
    /**
     * 基金外部编号
     */
    @Column("fund_ext_code")
    @Comment("基金外部编号")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String fundExtCode;
    /**
     * 基金份额
     */
    @Column("fund_portion")
    @Comment("基金份额")
    @ColDefine(customType = "DECIMAL", width = 38)
    private Double fundPortion;

    /**
     * 基金份额
     */
    @Column("fund_quantity")
    @Comment("基金份额")
    @ColDefine(customType = "DECIMAL", width = 38)
    private Double fundQuantity;

    /**
     * 创建或修改日期
     */
    @Column("mod_date")
    @Comment("创建或修改日期")
    @ColDefine(type = ColType.DATETIME, width = 19)
    @JSONField (format="yyyy-MM-dd HH:mm:ss")
    private Date modDate;
    /**
     * 对应基金状态，历史为0，有效为1
     */
    @Column("status")
    @Comment("对应基金状态，历史为0，有效为1")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer status;
    /**
     * 对应大类资产ID，对应fof_asset_strategy_info表的ID
     */
    @Column("asset_strategy_id")
    @Comment("对应大类资产ID，对应fof_asset_strategy_info表的ID")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer assetStrategyId;

    /**
     * 对应fof_param_history的ID
     */
    @Column("fof_param_id")
    @Comment("对应fof_param_history的ID")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer fofParamId;

    public void setFofId(Integer fofId){
        this.fofId=fofId;
    }
    public Integer getFofId(){
        return this.fofId;
    }

    public void setFundExtCode(String fundExtCode){
        this.fundExtCode=fundExtCode;
    }
    public String getFundExtCode(){
        return this.fundExtCode;
    }

    public void setFundPortion(Double fundPortion){
        this.fundPortion=fundPortion;
    }
    public Double getFundPortion(){
        return this.fundPortion;
    }

    public void setModDate(Date modDate){
        this.modDate=modDate;
    }
    public Date getModDate(){
        return this.modDate;
    }

    public void setStatus(Integer status){
        this.status=status;
    }
    public Integer getStatus(){
        return this.status;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Double getFundQuantity() {
        return fundQuantity;
    }

    public void setFundQuantity(Double fundQuantity) {
        this.fundQuantity = fundQuantity;
    }

    public Integer getAssetStrategyId() {
        return assetStrategyId;
    }

    public void setAssetStrategyId(Integer assetStrategyId) {
        this.assetStrategyId = assetStrategyId;
    }

    public Integer getFofParamId() {
        return fofParamId;
    }

    public void setFofParamId(Integer fofParamId) {
        this.fofParamId = fofParamId;
    }
}